package com.woniuxy.his.service.impl;

import com.woniuxy.his.entity.PresDetail;
import com.woniuxy.his.mapper.PresDetailMapper;
import com.woniuxy.his.service.IPresDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.his.vo.OutMedicineDetailVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 处方详情表 服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2021-08-24
 */
@Service
public class PresDetailServiceImpl extends ServiceImpl<PresDetailMapper, PresDetail> implements IPresDetailService {

    @Resource
    private PresDetailMapper presDetailMapper;

    @Override
    public List<OutMedicineDetailVo> getAllMedicineByPrescriptionId(Integer prescriptiontId) {
        List<OutMedicineDetailVo> medicenesDetail = presDetailMapper.getMedicenesDetail(prescriptiontId);
        return medicenesDetail;
    }
}
